﻿using System.Collections.Generic;
using System.Linq;

namespace Grocery
{
    class CustomerA : Customer
    {
        internal CustomerA(int number, int arrive, int items)
            :base(number, arrive, items)
        {
        
        }

        internal override CustomerType customerType
        {
            get
            {
                return CustomerType.A;
            }
        }

        protected override CashierQueue SelectQueue(IEnumerable<CashierQueue> queues)
        {
            return (from item in queues orderby item.Count, item.Number select item).First<CashierQueue>();
        }
        
    }
}
